/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gra.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 书单管理Entity
 * @author wuzengli
 * @version 2017-05-03
 */
public class Book extends DataEntity<Book> {
	
	private static final long serialVersionUID = 1L;
	private String bookName;		// 书单名称
	private String themeName;       // 主题阅读
	private String bookIntro;		// 书单内容
	private String themeid;		// 书单所属
	private String completeDegree;		// 完成程度
	private String sort;		// 排序
	private String status;		// 启用状态 0:不可用 1:可用
	
	public Book() {
		super();
	}

	public Book(String id){
		super(id);
	}

	@Length(min=1, max=50, message="书单名称长度必须介于 1 和 50 之间")
	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	
	public String getThemeName() {
		return themeName;
	}

	public void setThemeName(String themeName) {
		this.themeName = themeName;
	}

	@Length(min=0, max=200, message="书单内容长度必须介于 0 和 200 之间")
	public String getBookIntro() {
		return bookIntro;
	}

	public void setBookIntro(String bookIntro) {
		this.bookIntro = bookIntro;
	}
	
	@Length(min=0, max=50, message="书单所属长度必须介于 0 和 50 之间")
	public String getThemeid() {
		return themeid;
	}

	public void setThemeid(String themeid) {
		this.themeid = themeid;
	}
	
	@Length(min=0, max=10, message="完成程度长度必须介于 0 和 10 之间")
	public String getCompleteDegree() {
		return completeDegree;
	}

	public void setCompleteDegree(String completeDegree) {
		this.completeDegree = completeDegree;
	}
	
	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=11, message="启用状态 0:不可用 1:可用长度必须介于 0 和 11 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}